package org.example.domain.po;


import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.domain.enums.MessageTypeEnum;

/**
 * @description: RPC响应消息
 * @author: feixiang.li
 * @date: 2025-01-02 20:34
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RpcResponseMessagePO extends MessagePO {

    /**
     * 返回值
     */
    private Object returnValue;
    /**
     * 异常值
     */
    private Exception exceptionValue;

    @Override
    public int getMessageType() {
        return MessageTypeEnum.RPC_RESPONSE.getValue();
    }
}
